﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace SchoolManagementSystem
{
    public partial class RecoveryForm : Form
    {
        public RecoveryForm()
        {
            InitializeComponent();
        }

        /**
        private void cmdRecover_Click(object sender, EventArgs e)
        {
            loginTableAdapter.ClearBeforeFill = true;
            string username = loginTableAdapter.getUsername((String)cmBoxSecurity.SelectedItem,txtAnswer.Text);
            string password = loginTableAdapter.getPassword((String)cmBoxSecurity.SelectedItem, txtAnswer.Text);
            if (username == null || password == null)
            {
                MessageBox.Show("No matched username/password found");
            }
            else
            {
                RecoverdPasswordForm recoveredForm = new RecoverdPasswordForm(username,password);
                recoveredForm.Show();
                this.Hide();
            }
        }
        **/ 
    }
}
